import request from '@/utils/request'

// 查询请假申请列表
export function listAskLeaveApply(query) {
  return request({
    url: '/schoolSys/askLeaveApply/list',
    method: 'get',
    params: query
  })
}

// 查询请假申请详细
export function getAskLeaveApply(id) {
  return request({
    url: '/schoolSys/askLeaveApply/' + id,
    method: 'get'
  })
}

// 新增请假申请
export function addAskLeaveApply(data) {
  return request({
    url: '/schoolSys/askLeaveApply',
    method: 'post',
    data: data
  })
}

// 修改请假申请
export function updateAskLeaveApply(data) {
  return request({
    url: '/schoolSys/askLeaveApply',
    method: 'put',
    data: data
  })
}

// 删除请假申请
export function delAskLeaveApply(id) {
  return request({
    url: '/schoolSys/askLeaveApply/' + id,
    method: 'delete'
  })
}


// 查询家长列表
export function getAllpatriarch() {
  return request({
    url: '/schoolSys/teach/getAllpatriarch',
    method: 'get'
  })
}


// 查询所有学生
export function getAllStudent() {
  return request({
    url: '/schoolSys/teach/getAllStudent',
    method: 'get'
  })
}


